Hi everyone,
Pardon the newbie question but here is my story:
Downloaded the Centos virtual machine and started in VmWare, have my small heterogeneous network configured fine, installed the agents in both XP and Vista machines and relies on SNMP for the Linu servers (Debian and Debian based distros) and all was well.
Now I wanted better graphics and installed Nagiosgraph, well, needless to say a hell of a learning curve but managed to get Nagiosgraph to display through a link in action Url in one of the disk space services.
I have many questions:
1 - Can Nagiosgraph replace the native graphs from nagios in views like Host details or Service Details as that was my primary purpose when I installed nagiosgraph in the first place .... ??
2 - Why, since I installed and managed to make Nagiosgraph work, do the Nagios "Native" graphs display no data at all??? what I mean is that some of the graph do appear in the
"Performance graphs" Tab but the ones which appear do flatline so any help appreciated
Thanks
/Patrick
Nagios and Nagiosgraph
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nagios and Nagiosgraph
1.) No it cannot.
2. This possibly could be due to load on the server and npcd settings. What is the current load of the server?
2. This possibly could be due to load on the server and npcd settings. What is the current load of the server?
-
- Posts: 7
- Joined: Tue Aug 14, 2012 11:26 am
Re: Nagios and Nagiosgraph
The load on the server is fine, this is a really small network we are talking about here (7 machines) so could you elaborate on npcd settings?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nagios and Nagiosgraph
npcd has a load_threshold setting in it's config file that defaults to 10. If the load of the machine remains over 10 it will not process performance graphs.
The graph problem could be a permissions issue as well, you may want to run the following procedure
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
The graph problem could be a permissions issue as well, you may want to run the following procedure
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
-
- Posts: 7
- Joined: Tue Aug 14, 2012 11:26 am
Re: Nagios and Nagiosgraph
have checked the load levels on localhost and it is well below 10, plus this is an experimental feature and is not enabled:
# EXPERIMENTAL
#
# use_load_threshold - enables/disables load watching
#
# use_load_threshold = <0 / 1> (default: 0)
#
#use_load_threshold = 0
# EXPERIMENTAL
#
# load_threshold - npcd won't start new threads
# if your system load is over this threshold
#
# load_threshold = <float value> (default: 10.0)
#
# Hint: Do not use "," as decimal delimeter
#
load_threshold = 10.0
I noticed that the directory perfdata_spool_dir is set to /usr/local/nagios/var/spool/perfdata/
and the only files there are:
drwxr-xr-x. 2 nagios nagios 12K Aug 15 16:43 .
drwxr-xr-x. 5 nagios nagios 4.0K Aug 29 2011 ..
-rw-rw-r-- 1 nagios nagios 266 Aug 15 16:43 1345049004.perfdata.host
-rw-r--r-- 1 nagios users 241 Mar 5 22:48 host-perfdata.1330987694-PID-2109
both very small:
file 1345049064.perfdata.host
1345049064.perfdata.host: empty
cat host-perfdata.1330987694-PID-2109
DATATYPE::HOSTPERFDATA TIMET::1330987689 HOSTNAME::localhost HOSTPERFDATA::rta=0.014ms;3000.000;5000.000;0; pl=0%;80;100;; HOSTCHECKCOMMAND::check-host-alive HOSTSTATE::UP HOSTSTATETYPE::HARD HOSTOUTPUT::OK - 127.0.0.1: rta 0.014ms, lost 0%
so maybe nagios is simply not feeding that directory??? suggestions please??
Thanks
/Patrick
# EXPERIMENTAL
#
# use_load_threshold - enables/disables load watching
#
# use_load_threshold = <0 / 1> (default: 0)
#
#use_load_threshold = 0
# EXPERIMENTAL
#
# load_threshold - npcd won't start new threads
# if your system load is over this threshold
#
# load_threshold = <float value> (default: 10.0)
#
# Hint: Do not use "," as decimal delimeter
#
load_threshold = 10.0
I noticed that the directory perfdata_spool_dir is set to /usr/local/nagios/var/spool/perfdata/
and the only files there are:
drwxr-xr-x. 2 nagios nagios 12K Aug 15 16:43 .
drwxr-xr-x. 5 nagios nagios 4.0K Aug 29 2011 ..
-rw-rw-r-- 1 nagios nagios 266 Aug 15 16:43 1345049004.perfdata.host
-rw-r--r-- 1 nagios users 241 Mar 5 22:48 host-perfdata.1330987694-PID-2109
both very small:
file 1345049064.perfdata.host
1345049064.perfdata.host: empty
cat host-perfdata.1330987694-PID-2109
DATATYPE::HOSTPERFDATA TIMET::1330987689 HOSTNAME::localhost HOSTPERFDATA::rta=0.014ms;3000.000;5000.000;0; pl=0%;80;100;; HOSTCHECKCOMMAND::check-host-alive HOSTSTATE::UP HOSTSTATETYPE::HARD HOSTOUTPUT::OK - 127.0.0.1: rta 0.014ms, lost 0%
so maybe nagios is simply not feeding that directory??? suggestions please??
Thanks
/Patrick
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Nagios and Nagiosgraph
This is normal - you shouldn't have many items in the "/usr/local/nagios/var/spool/perfdata/" directory. This folder should be cleared every 15 sec (by default) - see the setting in the "npcd.cfg". Check it few times in a row - it should clear up and eventually show you "total 0".
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 7
- Joined: Tue Aug 14, 2012 11:26 am
Re: Nagios and Nagiosgraph
the files there seem to have an old timestamp, how does nagios feed that directory? maybe I broke that feed when I installed nagiosgraph??? as the log (tail -f npcd.log) shows that it is only reading these files ..
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Nagios and Nagiosgraph
Can you run the following command and show us the output?
Code: Select all
cat /usr/local/nagios/etc/nagios.cfg | grep perfdata
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 7
- Joined: Tue Aug 14, 2012 11:26 am
Re: Nagios and Nagiosgraph
#service_perfdata_file=/usr/local/nagios/var/service-perfdata
#service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tSERVICEOUTPUT::$SERVICEOUTPUT$
#service_perfdata_file_mode=a
#service_perfdata_file_processing_interval=15
#service_perfdata_file_processing_command=process_service_perfdata
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tHOSTOUTPUT::$HOSTOUTPUT$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file-bulk
perfdata_timeout=5
service_perfdata_file=/usr/local/nagios/var/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process_service_perfdata
#service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tSERVICEOUTPUT::$SERVICEOUTPUT$
#service_perfdata_file_mode=a
#service_perfdata_file_processing_interval=15
#service_perfdata_file_processing_command=process_service_perfdata
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tHOSTOUTPUT::$HOSTOUTPUT$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file-bulk
perfdata_timeout=5
service_perfdata_file=/usr/local/nagios/var/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process_service_perfdata
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Nagios and Nagiosgraph
I believe you need to change this:
to this:
Code: Select all
#service_perfdata_file=/usr/local/nagios/var/service-perfdata
#service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tSERVICEOUTPUT::$SERVICEOUTPUT$
#service_perfdata_file_mode=a
#service_perfdata_file_processing_interval=15
#service_perfdata_file_processing_command=process_service_perfdata
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tHOSTOUTPUT::$HOSTOUTPUT$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file-bulk
perfdata_timeout=5
service_perfdata_file=/usr/local/nagios/var/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process_service_perfdata
Code: Select all
service_perfdata_file=/usr/local/nagios/var/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tSERVICEOUTPUT::$SERVICEOUTPUT$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file-bulk
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tHOSTOUTPUT::$HOSTOUTPUT$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file-bulk
perfdata_timeout=5
Be sure to check out our Knowledgebase for helpful articles and solutions!