Re: [Nagios-users] Re : Re: Re : Re: Whoops! Could not read object configuration data!

2011-07-02 Thread Yueh-Hung Liu
what are the permissions and ownerships of nagios' config files?
what user is the http server (apache) running on?


On Sun, Jul 3, 2011 at 10:06 AM,   wrote:
> Yes, i tried the default, from my VM installation as well... i thought it
> was that at one point... because i changed the default nagiosadmin user to
> another use id, and i had changed my htpasswd too to match them... and then
> i tested with original htpasswd and original cgi files... things havnt got
> any better... to my little comprehension... CGI is worlking fine, as well as
> php... but it some point, seems like a process not able to read a file
> config of nagios... a process from apache... which i tried to restore all
> the known config files of both products... apache and nagios to match a new
> installation...
>
> i know or guess that i could easlily probably just remove and reinstall or
> force a re-install of both products... but i am also the usual type of guy
> that want to know what brakes... i hate the microsoft solution of ctrl + alt
> + del ... i'dlove to find what is deffective, im sure its a config...
> because it works elsewhere... so it related to my machine. config, etc...
>
> - Message d'origine -
> De: Yueh-Hung Liu 
> Date: Samedi, 2 Juillet 2011, 9:06 pm
> Objet: Re: [Nagios-users] Re : Re: Whoops! Could not read object
> configuration data!
> À: Nagios Users List 
>
>> did you check your 'cgi.cfg' config file?
>>
>>
>> On Sun, Jul 3, 2011 at 6:08 AM,   wrote:
>> > No, not that i know off, selinux and iptables are disabled
>> since i installed
>> > linux... first thing i do, i'd wish could be that simple tho !
>> >
>> > - Message d'origine -
>> > De: Jim Avery 
>> > Date: Samedi, 2 Juillet 2011, 5:56 pm
>> > Objet: Re: [Nagios-users] Whoops! Could not read object
>> configuration data!
>> > À: Nagios Users List 
>> >
>> >> On 2 July 2011 21:57,   wrote:
>> >> > Hi Community!
>> >> >
>> >> > i have a little problem here with Nagios (web interface).
>> >>
>> >> It's not that old chestnut selinux stopping it from working
>> is it?
>> >>
>> >> --
>> ---
>> >> -
>> >> All of the data generated in your IT infrastructure is seriously
>> >> valuable.Why? It contains a definitive record of application
>> >> performance, security
>> >> threats, fraudulent activity, and more. Splunk takes this data
>> >> and makes
>> >> sense of it. IT sense. And common sense.
>> >> http://p.sf.net/sfu/splunk-d2d-c2
>> >> ___
>> >> Nagios-users mailing list
>> >> Nagios-users@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> >> ::: Please include Nagios version, plugin version (-v) and OS
>> >> when reporting any issue.
>> >> ::: Messages without supporting info will risk being sent to
>> /dev/null> --
>> 
>> > All of the data generated in your IT infrastructure is
>> seriously valuable.
>> > Why? It contains a definitive record of application
>> performance, security
>> > threats, fraudulent activity, and more. Splunk takes this data
>> and makes
>> > sense of it. IT sense. And common sense.
>> > http://p.sf.net/sfu/splunk-d2d-c2
>> > ___
>> > Nagios-users mailing list
>> > Nagios-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/nagios-users
>> > ::: Please include Nagios version, plugin version (-v) and OS
>> when reporting
>> > any issue.
>> > ::: Messages without supporting info will risk being sent to
>> /dev/null>
>>
>> -
>> -
>> All of the data generated in your IT infrastructure is seriously
>> valuable.Why? It contains a definitive record of application
>> performance, security
>> threats, fraudulent activity, and more. Splunk takes this data
>> and makes
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2d-c2
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS
>> when reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
> --
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Na

[Nagios-users] Re : Re: Re : Re: Whoops! Could not read object configuration data!

2011-07-02 Thread crishna
Yes, i tried the default, from my VM installation as well... i thought it was 
that at one point... because i changed the default nagiosadmin user to another 
use id, and i had changed my htpasswd too to match them... and then i tested 
with original htpasswd and original cgi files... things havnt got any better... 
to my little comprehension... CGI is worlking fine, as well as php... but it 
some point, seems like a process not able to read a file config of nagios... a 
process from apache... which i tried to restore all the known config files of 
both products... apache and nagios to match a new installation...
 
i know or guess that i could easlily probably just remove and reinstall or 
force a re-install of both products... but i am also the usual type of guy that 
want to know what brakes... i hate the microsoft solution of ctrl + alt + del 
... i'dlove to find what is deffective, im sure its a config... because it 
works elsewhere... so it related to my machine. config, etc...

- Message d'origine -
De: Yueh-Hung Liu 
Date: Samedi, 2 Juillet 2011, 9:06 pm
Objet: Re: [Nagios-users] Re : Re: Whoops! Could not read object configuration 
data!
À: Nagios Users List 

> did you check your 'cgi.cfg' config file?
> 
> 
> On Sun, Jul 3, 2011 at 6:08 AM,   wrote:
> > No, not that i know off, selinux and iptables are disabled 
> since i installed
> > linux... first thing i do, i'd wish could be that simple tho !
> >
> > - Message d'origine -
> > De: Jim Avery 
> > Date: Samedi, 2 Juillet 2011, 5:56 pm
> > Objet: Re: [Nagios-users] Whoops! Could not read object 
> configuration data!
> > À: Nagios Users List 
> >
> >> On 2 July 2011 21:57,   wrote:
> >> > Hi Community!
> >> >
> >> > i have a little problem here with Nagios (web interface).
> >>
> >> It's not that old chestnut selinux stopping it from working 
> is it?
> >>
> >> --
> ---
> >> -
> >> All of the data generated in your IT infrastructure is seriously
> >> valuable.Why? It contains a definitive record of application
> >> performance, security
> >> threats, fraudulent activity, and more. Splunk takes this data
> >> and makes
> >> sense of it. IT sense. And common sense.
> >> http://p.sf.net/sfu/splunk-d2d-c2
> >> ___
> >> Nagios-users mailing list
> >> Nagios-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/nagios-users
> >> ::: Please include Nagios version, plugin version (-v) and OS
> >> when reporting any issue.
> >> ::: Messages without supporting info will risk being sent to 
> /dev/null> --
> 
> > All of the data generated in your IT infrastructure is 
> seriously valuable.
> > Why? It contains a definitive record of application 
> performance, security
> > threats, fraudulent activity, and more. Splunk takes this data 
> and makes
> > sense of it. IT sense. And common sense.
> > http://p.sf.net/sfu/splunk-d2d-c2
> > ___
> > Nagios-users mailing list
> > Nagios-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > ::: Please include Nagios version, plugin version (-v) and OS 
> when reporting
> > any issue.
> > ::: Messages without supporting info will risk being sent to 
> /dev/null>
> 
> -
> -
> All of the data generated in your IT infrastructure is seriously 
> valuable.Why? It contains a definitive record of application 
> performance, security 
> threats, fraudulent activity, and more. Splunk takes this data 
> and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS 
> when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Re : Re: Whoops! Could not read object configuration data!

2011-07-02 Thread Yueh-Hung Liu
did you check your 'cgi.cfg' config file?


On Sun, Jul 3, 2011 at 6:08 AM,   wrote:
> No, not that i know off, selinux and iptables are disabled since i installed
> linux... first thing i do, i'd wish could be that simple tho !
>
> - Message d'origine -
> De: Jim Avery 
> Date: Samedi, 2 Juillet 2011, 5:56 pm
> Objet: Re: [Nagios-users] Whoops! Could not read object configuration data!
> À: Nagios Users List 
>
>> On 2 July 2011 21:57,   wrote:
>> > Hi Community!
>> >
>> > i have a little problem here with Nagios (web interface).
>>
>> It's not that old chestnut selinux stopping it from working is it?
>>
>> -
>> -
>> All of the data generated in your IT infrastructure is seriously
>> valuable.Why? It contains a definitive record of application
>> performance, security
>> threats, fraudulent activity, and more. Splunk takes this data
>> and makes
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2d-c2
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS
>> when reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
> --
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Re : Re: Whoops! Could not read object configuration data!

2011-07-02 Thread crishna
No, not that i know off, selinux and iptables are disabled since i installed 
linux... first thing i do, i'd wish could be that simple tho !

- Message d'origine -
De: Jim Avery 
Date: Samedi, 2 Juillet 2011, 5:56 pm
Objet: Re: [Nagios-users] Whoops! Could not read object configuration data!
À: Nagios Users List 

> On 2 July 2011 21:57,   wrote:
> > Hi Community!
> >
> > i have a little problem here with Nagios (web interface).
> 
> It's not that old chestnut selinux stopping it from working is it?
> 
> -
> -
> All of the data generated in your IT infrastructure is seriously 
> valuable.Why? It contains a definitive record of application 
> performance, security 
> threats, fraudulent activity, and more. Splunk takes this data 
> and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS 
> when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Whoops! Could not read object configuration data!

2011-07-02 Thread Jim Avery
On 2 July 2011 21:57,   wrote:
> Hi Community!
>
> i have a little problem here with Nagios (web interface).

It's not that old chestnut selinux stopping it from working is it?

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Whoops! Could not read object configuration data!

2011-07-02 Thread crishna
Hi Community!
 
i have a little problem here with Nagios (web interface).
 
i have the following message from all menu items from the left pannel :
 
Whoops!
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
Verify configuration options using the -v command-line option to check for 
errors. 
Check the Nagios log file for messages relating to startup or status data 
errors.
Make sure you read the documentation on installing, configuring and running 
Nagios thoroughly before continuing. If all else fails, try sending a message 
to one of the mailing lists. More information can be found at 
http://www.nagios.org.
 
i did struggled the past 2 days with this issue. going over all config files i 
could think off, and even installed a VM with a linux to compare configs. but 
still the same issue...
i am running 
fedora 15 64 bits, 2.6.38.8-32.fc15.x86_64
nagios 3.2.3 october 03, 2010
i think nagios is working fine, because i get the email warnings of my failed 
servers/services.
the nagios -v command returns no error at all.
my guess is that httpd (apache) is in cause here. i tried the default config 
from the RPM packages, no luck.
when i installed it on the VM, it worked like a charm, so i tried the 
nagios.cfg, httpd.conf, cgi.conf, well all config frommy VM to my server, same 
issue.
next step, i looked the file ownerships, properties and applied the same 
ownership settings from the VM to my server, still the same problem.
i tried also to put debug message very verbose on nagios and apache, nothing 
showed up.
my login is working fine as well from the nagios web page, username password 
are valids.
anyone came accros this issue ?
if requested, i can provide all my configs. it used to work few weeks ago, but 
my raid array broke so i had to reinstall rfom scratch... since then, something 
seems deffective.
any help would be appreciated!
best regards, Francois
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Antwort: RE: MRTG graphs problem - measurement units not taken into consideration

2011-07-02 Thread Joerg Linge
radu.p...@technomatic.de schrieb:
>
> Yes, that's the one. Inside my config_local.php I have the line already
> put:
>
> #
> # Use this file as PDF background.
> #
> $conf['background_pdf'] = '/usr/local/pnp4nagios/etc/background.pdf' ;
>
> I downloaded the pdf file via scp and double checked to confirm it's the
> modified one.
>
> The rights on the file are:
>
> -rw-r--r-- 1 nagios nagios 41924 Jul  2 08:39 background.pdf
>
> Thanks!

Sorry i can´t reproduce this issue here.

someone else?

Joerg

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Antwort: RE: MRTG graphs problem - measurement units not taken into consideration

2011-07-02 Thread Radu . Popa


Damn, was all the time in front of me: the picture inserted was a stamp, so
obviously that the PNP would not use it. Added as a normal picture and
appeared immediately.

Sorry for keeping you busy :(



Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  07/02/2011 03:26 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


Yes, that's the one. Inside my config_local.php I have the line already
put:

#
# Use this file as PDF background.
#
$conf['background_pdf'] = '/usr/local/pnp4nagios/etc/background.pdf' ;

I downloaded the pdf file via scp and double checked to confirm it's the
modified one.

The rights on the file are:

-rw-r--r-- 1 nagios nagios 41924 Jul  2 08:39 background.pdf

Thanks!


>
> What I am trying to achieve is now modifying a bit the pdf generated page
(
> add an additional logo, put some text, aso). Saw that the background page
> is called background.pdf, so I have modified that, but when generating
PDF
> I still see the original background page, not the modified one.

Please be more precise!

which pdf file did you modify?

pnp4nagios/etc/background.pdf? Is this the one?

Is this file also registered in your pnp4nagios/etc/config_local.php

#
# Use this file as PDF background.
#
$conf['background_pdf'] = '/usr/local/pnp4nagios/etc/background.pdf' ;





Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  07/02/2011 02:19 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


What I am trying to achieve is now modifying a bit the pdf generated page (
add an additional logo, put some text, aso). Saw that the background page
is called background.pdf, so I have modified that, but when generating PDF
I still see the original background page, not the modified one.

Thanks!




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  07/02/2011 12:38 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


PNP version is 0.6.13 and you are totally right about the config_local.php
file. Modified in that one and I see it in all graphs.

The only opened issue for now is the pdf background file.

Thanks a lot!






Which pnp4nagios version do you use?

I assume its 0.6.13

PNP web interface reads config files in the following order.

pnp4nagios/etc/config_local.php
pnp4nagios/etc/config.php

config_local.php is used to store your own changes and will not be
overwritten on updates.
config.php is the default config file.

http://docs.pnp4nagios.org/pnp-0.6/webfe_cfg

Joerg





Von:Radu Popa/Technomatic
An: Radu Popa/Technomatic@Maxdorf
Kopie:  nagios-users@lists.sourceforge.net
Datum:  07/02/2011 12:24 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


I have managed to put the text into the graphs ( watermark) by adding the
option directly into the respective php file ( e.g. check_snmp_int.php).
All the php files seem to have already an $opt[1] line which overrides the
general options.

I am still stucked with the PDF background file however.

Thanks once again!



I can't say I've ever tried that.  I would think you need to append to
rather than replace the graph options though, so wouldn't it be ..

  $conf['graph_opt'] .= " --watermark 'Test'"

(note the ".=" rather than just "=" and the space added before --watermark
)

I don't have my Nagios system to hand at the moment so can't take a
look myself.  Remind me on Monday if you're still stuck and I'll have
a play with that myself.

Another option is to create some graphs outside of PNP altogether (but
using the .rrd databases created by PNP).  See:

http://oss.oetiker.ch/rrdtool/doc/rrdcgi.en.html

Again, I can dig out some examples for you if you remind me during the
week (or do a search - I'm sure we've covered this topic before either
here or on the PNP email list some time in the last few months).




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  07/02/2011 09:36 AM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


Hello again,

Can you please give some guidelines how to customize the PNP4Nagios
background page? I have tried using the $conf['graph_opt'] = "--watermark
'Test'" option, but it does not take it. Also modifications done on the
background.pdf file are not updated. Already restarted apache and nagios
services. In general I would like to add some logos and/or text.

Thank you!

On 29 June 2011 13:23,   wrote:
> After adding the -r option it works like a charm!
>
> Now in pnp4nagios I can see both values on the same graph: bytes i

[Nagios-users] Antwort: RE: MRTG graphs problem - measurement units not taken into consideration

2011-07-02 Thread Radu . Popa


Yes, that's the one. Inside my config_local.php I have the line already
put:

#
# Use this file as PDF background.
#
$conf['background_pdf'] = '/usr/local/pnp4nagios/etc/background.pdf' ;

I downloaded the pdf file via scp and double checked to confirm it's the
modified one.

The rights on the file are:

-rw-r--r-- 1 nagios nagios 41924 Jul  2 08:39 background.pdf

Thanks!


>
> What I am trying to achieve is now modifying a bit the pdf generated page
(
> add an additional logo, put some text, aso). Saw that the background page
> is called background.pdf, so I have modified that, but when generating
PDF
> I still see the original background page, not the modified one.

Please be more precise!

which pdf file did you modify?

pnp4nagios/etc/background.pdf? Is this the one?

Is this file also registered in your pnp4nagios/etc/config_local.php

#
# Use this file as PDF background.
#
$conf['background_pdf'] = '/usr/local/pnp4nagios/etc/background.pdf' ;




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  07/02/2011 02:19 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


What I am trying to achieve is now modifying a bit the pdf generated page (
add an additional logo, put some text, aso). Saw that the background page
is called background.pdf, so I have modified that, but when generating PDF
I still see the original background page, not the modified one.

Thanks!




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  07/02/2011 12:38 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


PNP version is 0.6.13 and you are totally right about the config_local.php
file. Modified in that one and I see it in all graphs.

The only opened issue for now is the pdf background file.

Thanks a lot!






Which pnp4nagios version do you use?

I assume its 0.6.13

PNP web interface reads config files in the following order.

pnp4nagios/etc/config_local.php
pnp4nagios/etc/config.php

config_local.php is used to store your own changes and will not be
overwritten on updates.
config.php is the default config file.

http://docs.pnp4nagios.org/pnp-0.6/webfe_cfg

Joerg





Von:Radu Popa/Technomatic
An: Radu Popa/Technomatic@Maxdorf
Kopie:  nagios-users@lists.sourceforge.net
Datum:  07/02/2011 12:24 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


I have managed to put the text into the graphs ( watermark) by adding the
option directly into the respective php file ( e.g. check_snmp_int.php).
All the php files seem to have already an $opt[1] line which overrides the
general options.

I am still stucked with the PDF background file however.

Thanks once again!



I can't say I've ever tried that.  I would think you need to append to
rather than replace the graph options though, so wouldn't it be ..

  $conf['graph_opt'] .= " --watermark 'Test'"

(note the ".=" rather than just "=" and the space added before --watermark
)

I don't have my Nagios system to hand at the moment so can't take a
look myself.  Remind me on Monday if you're still stuck and I'll have
a play with that myself.

Another option is to create some graphs outside of PNP altogether (but
using the .rrd databases created by PNP).  See:

http://oss.oetiker.ch/rrdtool/doc/rrdcgi.en.html

Again, I can dig out some examples for you if you remind me during the
week (or do a search - I'm sure we've covered this topic before either
here or on the PNP email list some time in the last few months).




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  07/02/2011 09:36 AM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


Hello again,

Can you please give some guidelines how to customize the PNP4Nagios
background page? I have tried using the $conf['graph_opt'] = "--watermark
'Test'" option, but it does not take it. Also modifications done on the
background.pdf file are not updated. Already restarted apache and nagios
services. In general I would like to add some logos and/or text.

Thank you!

On 29 June 2011 13:23,   wrote:
> After adding the -r option it works like a charm!
>
> Now in pnp4nagios I can see both values on the same graph: bytes in and
> bytes out. I see them as two thin lines. Any way to make the lines
thicker
> and change their colour?

Well done.

Yes, you can create a custom template.

Take a look under /usr/local/pnp4nagios/share/templates.dist and find
the file named check_snmp_int.php .  Copy it to the directory
/usr/local/pnp4nagios/share/templates and then edit it to get the
wider line.

For example the line which reads:

$def[1] .= "LINE

Re: [Nagios-users] Antwort: RE: MRTG graphs problem - measurement units not taken into consideration

2011-07-02 Thread Joerg Linge
radu.p...@technomatic.de schrieb:
>
> What I am trying to achieve is now modifying a bit the pdf generated page (
> add an additional logo, put some text, aso). Saw that the background page
> is called background.pdf, so I have modified that, but when generating PDF
> I still see the original background page, not the modified one.

Please be more precise!

which pdf file did you modify?

pnp4nagios/etc/background.pdf? Is this the one?

Is this file also registered in your pnp4nagios/etc/config_local.php

#
# Use this file as PDF background.
#
$conf['background_pdf'] = '/usr/local/pnp4nagios/etc/background.pdf' ;


--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Antwort: RE: MRTG graphs problem - measurement units not taken into consideration

2011-07-02 Thread Radu . Popa


What I am trying to achieve is now modifying a bit the pdf generated page (
add an additional logo, put some text, aso). Saw that the background page
is called background.pdf, so I have modified that, but when generating PDF
I still see the original background page, not the modified one.

Thanks!



Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  07/02/2011 12:38 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


PNP version is 0.6.13 and you are totally right about the config_local.php
file. Modified in that one and I see it in all graphs.

The only opened issue for now is the pdf background file.

Thanks a lot!






Which pnp4nagios version do you use?

I assume its 0.6.13

PNP web interface reads config files in the following order.

pnp4nagios/etc/config_local.php
pnp4nagios/etc/config.php

config_local.php is used to store your own changes and will not be
overwritten on updates.
config.php is the default config file.

http://docs.pnp4nagios.org/pnp-0.6/webfe_cfg

Joerg





Von:Radu Popa/Technomatic
An: Radu Popa/Technomatic@Maxdorf
Kopie:  nagios-users@lists.sourceforge.net
Datum:  07/02/2011 12:24 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


I have managed to put the text into the graphs ( watermark) by adding the
option directly into the respective php file ( e.g. check_snmp_int.php).
All the php files seem to have already an $opt[1] line which overrides the
general options.

I am still stucked with the PDF background file however.

Thanks once again!



I can't say I've ever tried that.  I would think you need to append to
rather than replace the graph options though, so wouldn't it be ..

  $conf['graph_opt'] .= " --watermark 'Test'"

(note the ".=" rather than just "=" and the space added before --watermark
)

I don't have my Nagios system to hand at the moment so can't take a
look myself.  Remind me on Monday if you're still stuck and I'll have
a play with that myself.

Another option is to create some graphs outside of PNP altogether (but
using the .rrd databases created by PNP).  See:

http://oss.oetiker.ch/rrdtool/doc/rrdcgi.en.html

Again, I can dig out some examples for you if you remind me during the
week (or do a search - I'm sure we've covered this topic before either
here or on the PNP email list some time in the last few months).




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  07/02/2011 09:36 AM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


Hello again,

Can you please give some guidelines how to customize the PNP4Nagios
background page? I have tried using the $conf['graph_opt'] = "--watermark
'Test'" option, but it does not take it. Also modifications done on the
background.pdf file are not updated. Already restarted apache and nagios
services. In general I would like to add some logos and/or text.

Thank you!

On 29 June 2011 13:23,   wrote:
> After adding the -r option it works like a charm!
>
> Now in pnp4nagios I can see both values on the same graph: bytes in and
> bytes out. I see them as two thin lines. Any way to make the lines
thicker
> and change their colour?

Well done.

Yes, you can create a custom template.

Take a look under /usr/local/pnp4nagios/share/templates.dist and find
the file named check_snmp_int.php .  Copy it to the directory
/usr/local/pnp4nagios/share/templates and then edit it to get the
wider line.

For example the line which reads:

$def[1] .= "LINE1:var1#003300:\"in  \" " ;

Change it to read:

$def[1] .= "LINE3:var1#003300:\"in  \" " ;



You will find documentation on how the LINE instruction works at:

http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html

and some general help on PNP templates at:

http://docs.pnp4nagios.org/pnp-0.6/tpl




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  06/29/2011 03:23 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


After adding the -r option it works like a charm!

Now in pnp4nagios I can see both values on the same graph: bytes in and
bytes out. I see them as two thin lines. Any way to make the lines thicker
and change their colour?




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  06/29/2011 01:45 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


Was a typo error of the community string, after putting "public" instead of
"Public" everything looks cool.

Still 1 question:

If I try to query interface GigabitEthernet0/2 I get the response:

GigabitEthernet0/21

Re: [Nagios-users] Antwort: RE: MRTG graphs problem - measurement units not taken into consideration

2011-07-02 Thread Joerg Linge
radu.p...@technomatic.de schrieb:
> I have managed to put the text into the graphs ( watermark) by adding the
> option directly into the respective php file ( e.g. check_snmp_int.php).
> All the php files seem to have already an $opt[1] line which overrides the
> general options.
>
> I am still stucked with the PDF background file however.

Please tell us in detail what you are doing.

Which version of pnp4nagios do you use and which config file do you change.
Please provide exact informations.

Joerg

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Antwort: RE: MRTG graphs problem - measurement units not taken into consideration

2011-07-02 Thread Radu . Popa


PNP version is 0.6.13 and you are totally right about the config_local.php
file. Modified in that one and I see it in all graphs.

The only opened issue for now is the pdf background file.

Thanks a lot!






Which pnp4nagios version do you use?

I assume its 0.6.13

PNP web interface reads config files in the following order.

pnp4nagios/etc/config_local.php
pnp4nagios/etc/config.php

config_local.php is used to store your own changes and will not be
overwritten on updates.
config.php is the default config file.

http://docs.pnp4nagios.org/pnp-0.6/webfe_cfg

Joerg




Von:Radu Popa/Technomatic
An: Radu Popa/Technomatic@Maxdorf
Kopie:  nagios-users@lists.sourceforge.net
Datum:  07/02/2011 12:24 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


I have managed to put the text into the graphs ( watermark) by adding the
option directly into the respective php file ( e.g. check_snmp_int.php).
All the php files seem to have already an $opt[1] line which overrides the
general options.

I am still stucked with the PDF background file however.

Thanks once again!



I can't say I've ever tried that.  I would think you need to append to
rather than replace the graph options though, so wouldn't it be ..

  $conf['graph_opt'] .= " --watermark 'Test'"

(note the ".=" rather than just "=" and the space added before --watermark
)

I don't have my Nagios system to hand at the moment so can't take a
look myself.  Remind me on Monday if you're still stuck and I'll have
a play with that myself.

Another option is to create some graphs outside of PNP altogether (but
using the .rrd databases created by PNP).  See:

http://oss.oetiker.ch/rrdtool/doc/rrdcgi.en.html

Again, I can dig out some examples for you if you remind me during the
week (or do a search - I'm sure we've covered this topic before either
here or on the PNP email list some time in the last few months).




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  07/02/2011 09:36 AM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


Hello again,

Can you please give some guidelines how to customize the PNP4Nagios
background page? I have tried using the $conf['graph_opt'] = "--watermark
'Test'" option, but it does not take it. Also modifications done on the
background.pdf file are not updated. Already restarted apache and nagios
services. In general I would like to add some logos and/or text.

Thank you!

On 29 June 2011 13:23,   wrote:
> After adding the -r option it works like a charm!
>
> Now in pnp4nagios I can see both values on the same graph: bytes in and
> bytes out. I see them as two thin lines. Any way to make the lines
thicker
> and change their colour?

Well done.

Yes, you can create a custom template.

Take a look under /usr/local/pnp4nagios/share/templates.dist and find
the file named check_snmp_int.php .  Copy it to the directory
/usr/local/pnp4nagios/share/templates and then edit it to get the
wider line.

For example the line which reads:

$def[1] .= "LINE1:var1#003300:\"in  \" " ;

Change it to read:

$def[1] .= "LINE3:var1#003300:\"in  \" " ;



You will find documentation on how the LINE instruction works at:

http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html

and some general help on PNP templates at:

http://docs.pnp4nagios.org/pnp-0.6/tpl




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  06/29/2011 03:23 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


After adding the -r option it works like a charm!

Now in pnp4nagios I can see both values on the same graph: bytes in and
bytes out. I see them as two thin lines. Any way to make the lines thicker
and change their colour?




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  06/29/2011 01:45 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not taken
into consideration


Was a typo error of the community string, after putting "public" instead of
"Public" everything looks cool.

Still 1 question:

If I try to query interface GigabitEthernet0/2 I get the response:

GigabitEthernet0/21:DOWN, GigabitEthernet0/23:DOWN, GigabitEthernet0/24:UP
No usable data on file (40 rows) , GigabitEthernet0/2:UP No usable data on
file (1 rows) , GigabitEthernet0/22:DOWN, GigabitEthernet0/20:UP No usable
data on file (1 rows) : 3 int NOK : CRITICAL

So ti seems that it takes all interfaces starting with "0/2" string. Any
way to limit this? Do I have to enter any escape character?

Thank you!




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  06/29/2011 01:29 PM
Betreff: 

[Nagios-users] Antwort: RE: MRTG graphs problem - measurement units not taken into consideration

2011-07-02 Thread Radu . Popa
I have managed to put the text into the graphs ( watermark) by adding the 
option directly into the respective php file ( e.g. check_snmp_int.php). 
All the php files seem to have already an $opt[1] line which overrides the 
general options.

I am still stucked with the PDF background file however.

Thanks once again!



I can't say I've ever tried that.  I would think you need to append to
rather than replace the graph options though, so wouldn't it be ..

  $conf['graph_opt'] .= " --watermark 'Test'"

(note the ".=" rather than just "=" and the space added before --watermark 
)

I don't have my Nagios system to hand at the moment so can't take a
look myself.  Remind me on Monday if you're still stuck and I'll have
a play with that myself.

Another option is to create some graphs outside of PNP altogether (but
using the .rrd databases created by PNP).  See:

http://oss.oetiker.ch/rrdtool/doc/rrdcgi.en.html

Again, I can dig out some examples for you if you remind me during the
week (or do a search - I'm sure we've covered this topic before either
here or on the PNP email list some time in the last few months).



Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  07/02/2011 09:36 AM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not 
taken into consideration


Hello again,

Can you please give some guidelines how to customize the PNP4Nagios 
background page? I have tried using the $conf['graph_opt'] = "--watermark 
'Test'" option, but it does not take it. Also modifications done on the 
background.pdf file are not updated. Already restarted apache and nagios 
services. In general I would like to add some logos and/or text.

Thank you!

On 29 June 2011 13:23,   wrote:
> After adding the -r option it works like a charm!
>
> Now in pnp4nagios I can see both values on the same graph: bytes in and
> bytes out. I see them as two thin lines. Any way to make the lines 
thicker
> and change their colour?

Well done.

Yes, you can create a custom template.

Take a look under /usr/local/pnp4nagios/share/templates.dist and find
the file named check_snmp_int.php .  Copy it to the directory
/usr/local/pnp4nagios/share/templates and then edit it to get the
wider line.

For example the line which reads:

$def[1] .= "LINE1:var1#003300:\"in  \" " ;

Change it to read:

$def[1] .= "LINE3:var1#003300:\"in  \" " ;



You will find documentation on how the LINE instruction works at:

http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html

and some general help on PNP templates at:

http://docs.pnp4nagios.org/pnp-0.6/tpl




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  06/29/2011 03:23 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not 
taken into consideration


After adding the -r option it works like a charm!

Now in pnp4nagios I can see both values on the same graph: bytes in and 
bytes out. I see them as two thin lines. Any way to make the lines thicker 
and change their colour?




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  06/29/2011 01:45 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not 
taken into consideration


Was a typo error of the community string, after putting "public" instead 
of "Public" everything looks cool.

Still 1 question:

If I try to query interface GigabitEthernet0/2 I get the response:

GigabitEthernet0/21:DOWN, GigabitEthernet0/23:DOWN, GigabitEthernet0/24:UP 
No usable data on file (40 rows) , GigabitEthernet0/2:UP No usable data on 
file (1 rows) , GigabitEthernet0/22:DOWN, GigabitEthernet0/20:UP No usable 
data on file (1 rows) : 3 int NOK : CRITICAL

So ti seems that it takes all interfaces starting with "0/2" string. Any 
way to limit this? Do I have to enter any escape character?

Thank you!




Von:Radu Popa/Technomatic
An: nagios-users@lists.sourceforge.net
Datum:  06/29/2011 01:29 PM
Betreff:Antwort: RE: MRTG graphs problem - measurement units not 
taken into consideration


Ok,

Here is what I got so far:

1. If I run the command: ./check_snmp_int.pl -H 192.168.2.1 -C public -2 
-n GigabitEthernet0/24 -fY -kqB -g -w 60,60,100,100,10,10 -c 
80,80,200,200,20,20 -d 5 , I get the following output:
GigabitEthernet0/24:UP (16.9Kbps/26.2Kbps/0.0/0.0/0.0/0.0):1 UP: OK | 
'GigabitEthernet0/24_in_bps'=16899;6;8;0;10 
'GigabitEthernet0/24_out_bps'=26237;6;8;0;10

Before getting a correct output I run the command several times. The 
initial output is GigabitEthernet0/24:UP No usable data on file (102 rows) 
:(1 UP): UNKNOWN

2. Defined the following command in nagios:

define command{
command_namecheck_snmp_int
command_line$USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C 
$USER5$ -2 -n $ARG1$ -fY -kqB -g -w $ARG2$ -c $ARG3$ -d $ARG4$

Re: [Nagios-users] Antwort: RE: MRTG graphs problem - measurement units not taken into consideration

2011-07-02 Thread Joerg Linge
radu.p...@technomatic.de schrieb:
> Hello again,
>
> Can you please give some guidelines how to customize the PNP4Nagios
> background page? I have tried using the $conf['graph_opt'] = "--watermark
> 'Test'" option, but it does not take it. Also modifications done on the
> background.pdf file are not updated. Already restarted apache and nagios
> services. In general I would like to add some logos and/or text.

Which pnp4nagios version do you use?

I assume its 0.6.13

PNP web interface reads config files in the following order.

pnp4nagios/etc/config_local.php
pnp4nagios/etc/config.php

config_local.php is used to store your own changes and will not be overwritten 
on updates.
config.php is the default config file.

http://docs.pnp4nagios.org/pnp-0.6/webfe_cfg

Joerg

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Antwort: RE: MRTG graphs problem - measurement units not taken into consideration

2011-07-02 Thread Jim Avery
On 2 July 2011 07:36,   wrote:
> Hello again,
>
> Can you please give some guidelines how to customize the PNP4Nagios
> background page? I have tried using the $conf['graph_opt'] = "--watermark
> 'Test'" option, but it does not take it. Also modifications done on the
> background.pdf file are not updated. Already restarted apache and nagios
> services. In general I would like to add some logos and/or text.

I can't say I've ever tried that.  I would think you need to append to
rather than replace the graph options though, so wouldn't it be ..

  $conf['graph_opt'] .= " --watermark 'Test'"

(note the ".=" rather than just "=" and the space added before --watermark )

I don't have my Nagios system to hand at the moment so can't take a
look myself.  Remind me on Monday if you're still stuck and I'll have
a play with that myself.

Another option is to create some graphs outside of PNP altogether (but
using the .rrd databases created by PNP).  See:

http://oss.oetiker.ch/rrdtool/doc/rrdcgi.en.html

Again, I can dig out some examples for you if you remind me during the
week (or do a search - I'm sure we've covered this topic before either
here or on the PNP email list some time in the last few months).

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Windows monitoring error

2011-07-02 Thread Matthew Jurgens
The easiest way is to forget about NSClient++ and simplify your 
monitoring by using


http://exchange.nagios.org/directory/Plugins/Operating-Systems/Windows/WMI/Check-WMI-Plus/details 



Unless there is some check that only NSClient++ can do

On 2/07/2011 1:17 AM, nag ios wrote:
Default one is 12489 right.? i haven't tried with 12849 will 
try and update the status ok.Version: 10.0.1388 / Virus Database: 
1516/3736 - Release Date: 06/30/11 


--
Smartmon System Monitoring 
www.smartmon.com.au 
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null