Re: [Nagios-users] Graphing values from nagios
Did you make sure you have the performance processing turned on in the host definition? I would do a tail -f /var/log/perfdata.log to see if it is getting any entries. JS > Hello > > change the system to debug mode and then just run insert.pl it will tell > you > what wrong. you can also remove all the entries from the map file and add > them one by one. then you will find out what causing the problem. if its > not > working paste the whole map file and ill check the regexp > > Moshe SHaron > > > On 1/28/06, Toto Capuccino <[EMAIL PROTECTED]> wrote: >> >> I try to graph the ping command : >> the nagiosgraph.log gives: >> Sat Jan 28 14:48:37 2006 CGI debug: Config rrdtool:/usr/bin/rrdtool >> Sat Jan 28 14:48:37 2006 CGI debug: @db> Sat Jan 28 14:48:37 2006 CGI >> info: Listing frparsv03_PING db files in >> /usr/local/nagios/nagiosgraph/rrd: >> Sat Jan 28 14:48:37 2006 CGI info: System /usr/bin/rrdtool graph - -a >> PNG >> --start -3456 >> >> the map file contains : >> >> # Service type: ping >> # output:PING OK - Packet loss = 0%, RTA = 0.00 m >> /output:PING.*?(\d+)%.+?([.\d]+)\sms/ >> and push @s, [ ping, >>[ losspct, GAUGE, $1 ], >>[ rta, GAUGE, $2/1000 ] ]; >> >> and the ouput of the check_ping gives : >> >> check_ping -H 10.1.1.5 -w 3000.0,80% -c 5000.0,100% -p 1 >> PING OK - Packet loss = 0%, RTA = 0.42 ms >> >> i see that the rrdtool get no values, so there should be at least an >> erro >> in the map file, but i am not a perl coder. The service type uses RTA > >> 0.00 m and my ouput uses ms instead of just m ...maybe it is one of the >> reason i get broken links in the http page and no rrd files created. >> >> Can you give a hand, anyone ? Thank you. >> >> 2006/1/28, Toto Capuccino <[EMAIL PROTECTED]>: >> > >> > i had a look and it fits to install from nagios 2 at leat but i am >> > running version 1.3. Anyone got nagiosgraph running under nagios1.3? >> > 2006/1/27, Todd Barbera < [EMAIL PROTECTED]>: >> > > >> > > >> > > http://cvs.sourceforge.net/viewcvs.py/*checkout*/nagiosgraph/nagiosgraph/INSTALL >> > > >> > > >> > > >> > > Check out this install link. I believe you are missing some entries >> in >> > > nagios.cfg (assuming you are using nagiosgraph and not >> Nagiosgrapher). >> > > >> > > >> > > >> > > >> > > Todd >> > > >> > > >> > > >> > > -Original Message- >> > > *From:* [EMAIL PROTECTED] [mailto: >> > > [EMAIL PROTECTED] *On Behalf Of *Toto >> > > Capuccino >> > > *Sent:* Friday, January 27, 2006 12:01 PM >> > > *To:* nagios-users@lists.sourceforge.net >> > > *Subject:* Re: [Nagios-users] Graphing values from nagios >> > > >> > > >> > > >> > > i didnt get nagiosgraph working, maybe you can help. >> > > I followed the INSTALL paper. >> > > >> > >- I got nagiosgraph.conf, map, insert.pl and show.cgi in >> > >/usr/local/nagios/nagiosgraph/ >> > > >> > > >> > >- In *nagios.cfg* i set: >> > > >> > > process_performance_data=1 >> > > service_perfdata_command=process-service-perfdata >> > > >> > >- In misccommands.cfg: >> > > >> > > define command { >> > > command_name process-service-perfdata >> > > command_line /usr/local/nagios/nagiosgraph/insert.pl >> > >"$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$" >> > > } >> > > >> > > >> > >- an icon in .../share/images/logos/ >> > >- in /usr/local/nagios/etc/serviceextinfo.cfg >> > > >> > > Most services can be graphed with no particular configuration >> > >like this: >> > > >> > > define serviceextinfo { >> > > service_description serviceblabla >> > > host_name server01,server02 >> > > notes_url >> > >/nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ >> > > icon_image graph.gif >> > > icon_image_alt View graphs >> > > } >> > > >> > > >> > >- ScriptAlias /nagiosgraph/ /usr/local/nagios/nagiosgraph/ in >> > >apache2.conf. The result i get is simply nothing. What did i >> > >forgot ? What do i have to put in nagios.cfg to link to >> > >serviceextinfo.cfg ? I put >> > >cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without >> success. Do i have >> > >to put something in services.cfg? Thanks >> > > >> > > Have you installed a graphing add-on? nagiosgraph works fairly >> well. >> > > You can pretty much graph anything so long as you have a grasp of >> Perl. >> > > >> > > >> > > >> > > Todd >> > > >> > > >> > > >> > > -Original Message- >> > > *From:* [EMAIL PROTECTED] [mailto: >> > > [EMAIL PROTECTED] *On Behalf Of *Toto >> > > Capuccino >> > > *Sent:* Friday, January 27, 2006 10:56 AM >> > > *To:* nagios-users@lists.sourceforge.net >> > > *Subject:* [Nagios-users] Graphing values from nagios >> > > >> > > >> > > >> > > Hi, >> > > >> > > Can someone show me the way to success ? I want to graph the values >> i >> > > get from nsclient check-nt -v USEDDISKSPACE on servers. >>
Re: [Nagios-users] Graphing values from nagios
insert.pl has to know where the configuration files are. and I think show.cgi has to have some edits made to it as well. On 1/28/06, moshe sharon <[EMAIL PROTECTED]> wrote: Hello change the system to debug mode and then just run insert.pl it will tell you what wrong. you can also remove all the entries from the map file and add them one by one. then you will find out what causing the problem. if its not working paste the whole map file and ill check the regexp Moshe SHaron On 1/28/06, Toto Capuccino <[EMAIL PROTECTED] > wrote: I try to graph the ping command :the nagiosgraph.log gives:Sat Jan 28 14:48:37 2006 CGI debug: Config rrdtool:/usr/bin/rrdtool Sat Jan 28 14:48:37 2006 CGI debug: @db=Sat Jan 28 14:48:37 2006 CGI info: Listing frparsv03_PING db files in /usr/local/nagios/nagiosgraph/rrd: Sat Jan 28 14:48:37 2006 CGI info: System /usr/bin/rrdtool graph - -a PNG --start -3456 the map file contains :# Service type: ping# output:PING OK - Packet loss = 0%, RTA = 0.00 m/output:PING.*?(\d+)%.+?([.\d]+)\sms/ and push @s, [ ping, [ losspct, GAUGE, $1 ], [ rta, GAUGE, $2/1000 ] ];and the ouput of the check_ping gives :check_ping -H 10.1.1.5 -w 3000.0,80% -c 5000.0,100% -p 1PING OK - Packet loss = 0%, RTA = 0.42 msi see that the rrdtool get no values, so there should be at least an erro in the map file, but i am not a perl coder. The service type uses RTA = 0.00 m and my ouput uses ms instead of just m ...maybe it is one of the reason i get broken links in the http page and no rrd files created.Can you give a hand, anyone ? Thank you. 2006/1/28, Toto Capuccino <[EMAIL PROTECTED]>: i had a look and it fits to install from nagios 2 at leat but i am running version 1.3. Anyone got nagiosgraph running under nagios1.3? 2006/1/27, Todd Barbera < [EMAIL PROTECTED]>: http://cvs.sourceforge.net/viewcvs.py/*checkout*/nagiosgraph/nagiosgraph/INSTALL Check out this install link. I believe you are missing some entries in nagios.cfg (assuming you are using nagiosgraph and not Nagiosgrapher). Todd -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Toto CapuccinoSent: Friday, January 27, 2006 12:01 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Graphing values from nagios i didnt get nagiosgraph working, maybe you can help.I followed the INSTALL paper. I got nagiosgraph.conf, map, insert.pl and show.cgi in /usr/local/nagios/nagiosgraph/ In nagios.cfg i set: process_performance_data=1 service_perfdata_command=process-service-perfdata In misccommands.cfg: define command { command_name process-service-perfdata command_line /usr/local/nagios/nagiosgraph/insert.pl "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$" } an icon in .../share/images/logos/ in /usr/local/nagios/etc/serviceextinfo.cfg Most services can be graphed with no particular configuration like this: define serviceextinfo { service_description serviceblabla host_name server01,server02 notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ icon_image graph.gif icon_image_alt View graphs } ScriptAlias /nagiosgraph/ /usr/local/nagios/nagiosgraph/ in apache2.conf. The result i get is simply nothing. What did i forgot ? What do i have to put in nagios.cfg to link to serviceextinfo.cfg ? I put cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without success. Do i have to put something in services.cfg? Thanks Have you installed a graphing add-on? nagiosgraph works fairly well. You can pretty much graph anything so long as you have a grasp of Perl. Todd -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Toto CapuccinoSent: Friday, January 27, 2006 10:56 AM To: nagios-users@lists.sourceforge.netSubject: [Nagios-users] Graphing values from nagios Hi,Can someone show me the way to success ? I want to graph the values i get from nsclient check-nt -v USEDDISKSPACE on servers. Is that possible ? How can i retrieve values monitored ? Thanks for thoughts, help, lessons.
[Nagios-users] 2.0 Documentation error, templaterecursion.html
Title: 2.0 Documentation error, templaterecursion.html In this stanza, the "use" line in 'bighost2' definition should be changed from "hosttemplate1" to "bighost1", if the explanation is to be correct. /eli define host{ host_name bighost1 check_command check-host-alive notification_options d,u,r max_check_attempts 5 name hosttemplate1 } define host{ host_name bighost2 max_check_attempts 3 use hosttemplate1 } You'll note that the definition for host bighost1 has been defined as having hosttemplate1 as its template name. The definition for host bighost2 is using the definition of bighost1 as its template object. Once Nagios processes this data, the resulting definition of host bighost2 would be equivalent to this definition:
Re: [Nagios-users] Graphing values from nagios
Hello change the system to debug mode and then just run insert.pl it will tell you what wrong. you can also remove all the entries from the map file and add them one by one. then you will find out what causing the problem. if its not working paste the whole map file and ill check the regexp Moshe SHaron On 1/28/06, Toto Capuccino <[EMAIL PROTECTED]> wrote: I try to graph the ping command :the nagiosgraph.log gives:Sat Jan 28 14:48:37 2006 CGI debug: Config rrdtool:/usr/bin/rrdtool Sat Jan 28 14:48:37 2006 CGI debug: @db=Sat Jan 28 14:48:37 2006 CGI info: Listing frparsv03_PING db files in /usr/local/nagios/nagiosgraph/rrd: Sat Jan 28 14:48:37 2006 CGI info: System /usr/bin/rrdtool graph - -a PNG --start -3456 the map file contains :# Service type: ping# output:PING OK - Packet loss = 0%, RTA = 0.00 m/output:PING.*?(\d+)%.+?([.\d]+)\sms/and push @s, [ ping, [ losspct, GAUGE, $1 ], [ rta, GAUGE, $2/1000 ] ];and the ouput of the check_ping gives :check_ping -H 10.1.1.5 -w 3000.0,80% -c 5000.0,100% -p 1PING OK - Packet loss = 0%, RTA = 0.42 msi see that the rrdtool get no values, so there should be at least an erro in the map file, but i am not a perl coder. The service type uses RTA = 0.00 m and my ouput uses ms instead of just m ...maybe it is one of the reason i get broken links in the http page and no rrd files created.Can you give a hand, anyone ? Thank you. 2006/1/28, Toto Capuccino <[EMAIL PROTECTED]>: i had a look and it fits to install from nagios 2 at leat but i am running version 1.3. Anyone got nagiosgraph running under nagios1.3? 2006/1/27, Todd Barbera < [EMAIL PROTECTED]>: http://cvs.sourceforge.net/viewcvs.py/*checkout*/nagiosgraph/nagiosgraph/INSTALL Check out this install link. I believe you are missing some entries in nagios.cfg (assuming you are using nagiosgraph and not Nagiosgrapher). Todd -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Toto CapuccinoSent: Friday, January 27, 2006 12:01 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Graphing values from nagios i didnt get nagiosgraph working, maybe you can help.I followed the INSTALL paper. I got nagiosgraph.conf, map, insert.pl and show.cgi in /usr/local/nagios/nagiosgraph/ In nagios.cfg i set: process_performance_data=1 service_perfdata_command=process-service-perfdata In misccommands.cfg: define command { command_name process-service-perfdata command_line /usr/local/nagios/nagiosgraph/insert.pl "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$" } an icon in .../share/images/logos/ in /usr/local/nagios/etc/serviceextinfo.cfg Most services can be graphed with no particular configuration like this: define serviceextinfo { service_description serviceblabla host_name server01,server02 notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ icon_image graph.gif icon_image_alt View graphs } ScriptAlias /nagiosgraph/ /usr/local/nagios/nagiosgraph/ in apache2.conf. The result i get is simply nothing. What did i forgot ? What do i have to put in nagios.cfg to link to serviceextinfo.cfg ? I put cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without success. Do i have to put something in services.cfg? Thanks Have you installed a graphing add-on? nagiosgraph works fairly well. You can pretty much graph anything so long as you have a grasp of Perl. Todd -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Toto CapuccinoSent: Friday, January 27, 2006 10:56 AM To: nagios-users@lists.sourceforge.netSubject: [Nagios-users] Graphing values from nagios Hi,Can someone show me the way to success ? I want to graph the values i get from nsclient check-nt -v USEDDISKSPACE on servers. Is that possible ? How can i retrieve values monitored ? Thanks for thoughts, help, lessons.
Re: [Nagios-users] Graphing values from nagios
I try to graph the ping command :the nagiosgraph.log gives:Sat Jan 28 14:48:37 2006 CGI debug: Config rrdtool:/usr/bin/rrdtoolSat Jan 28 14:48:37 2006 CGI debug: @db=Sat Jan 28 14:48:37 2006 CGI info: Listing frparsv03_PING db files in /usr/local/nagios/nagiosgraph/rrd: Sat Jan 28 14:48:37 2006 CGI info: System /usr/bin/rrdtool graph - -a PNG --start -3456the map file contains :# Service type: ping# output:PING OK - Packet loss = 0%, RTA = 0.00 m/output:PING.*?(\d+)%.+?([.\d]+)\sms/and push @s, [ ping, [ losspct, GAUGE, $1 ], [ rta, GAUGE, $2/1000 ] ];and the ouput of the check_ping gives : check_ping -H 10.1.1.5 -w 3000.0,80% -c 5000.0,100% -p 1PING OK - Packet loss = 0%, RTA = 0.42 msi see that the rrdtool get no values, so there should be at least an erro in the map file, but i am not a perl coder. The service type uses RTA = 0.00 m and my ouput uses ms instead of just m ...maybe it is one of the reason i get broken links in the http page and no rrd files created.Can you give a hand, anyone ? Thank you. 2006/1/28, Toto Capuccino <[EMAIL PROTECTED]>: i had a look and it fits to install from nagios 2 at leat but i am running version 1.3. Anyone got nagiosgraph running under nagios1.3?2006/1/27, Todd Barbera < [EMAIL PROTECTED]>: http://cvs.sourceforge.net/viewcvs.py/*checkout*/nagiosgraph/nagiosgraph/INSTALL Check out this install link. I believe you are missing some entries in nagios.cfg (assuming you are using nagiosgraph and not Nagiosgrapher). Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Toto Capuccino Sent: Friday, January 27, 2006 12:01 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Graphing values from nagios i didnt get nagiosgraph working, maybe you can help. I followed the INSTALL paper. I got nagiosgraph.conf, map, insert.pl and show.cgi in /usr/local/nagios/nagiosgraph/ In nagios.cfg i set: process_performance_data=1 service_perfdata_command=process-service-perfdata In misccommands.cfg: define command { command_name process-service-perfdata command_line /usr/local/nagios/nagiosgraph/insert.pl "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$" } an icon in .../share/images/logos/ in /usr/local/nagios/etc/serviceextinfo.cfg Most services can be graphed with no particular configuration like this: define serviceextinfo { service_description serviceblabla host_name server01,server02 notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ icon_image graph.gif icon_image_alt View graphs } ScriptAlias /nagiosgraph/ /usr/local/nagios/nagiosgraph/ in apache2.conf. The result i get is simply nothing. What did i forgot ? What do i have to put in nagios.cfg to link to serviceextinfo.cfg ? I put cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without success. Do i have to put something in services.cfg? Thanks Have you installed a graphing add-on? nagiosgraph works fairly well. You can pretty much graph anything so long as you have a grasp of Perl. Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Toto Capuccino Sent: Friday, January 27, 2006 10:56 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Graphing values from nagios Hi, Can someone show me the way to success ? I want to graph the values i get from nsclient check-nt -v USEDDISKSPACE on servers. Is that possible ? How can i retrieve values monitored ? Thanks for thoughts, help, lessons.