Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
However, all other services like CPU, Uptime, SSH, etc have the graphics instead of disk service, though the service check is fine. When I checked the perfdata directory, I do not see rrd and xml files for disk service and not sure how to generate them. Thanks.
define service{
use generic-service,service-pnp
hostgroup_name linux
service_description Root Disk Usage
servicegroups disk
check_command check_snmp_disk!3!/
contact_groups admins
}
Can you verify that the service check that is using the check_snmp_disk plugin is returning performance data?
Take a look at the service details in the Web interface.
Another thing to check. The check_snmp_disk plugin has to have the performance data enabled on it's output.
If you edit the command and add a -d to it, that will enable the performance data.
The PNP4Nagios logfile by default is in this location. Take a look at it if needed.
Thanks for the quick reply. Yes, the snmp_check_disk return me good service results, please see the screenshot attached. However it did not give me graph even though I have added -d option at the end of the command in host config file.
define service{
use generic-service,service-pnp
hostgroup_name linux
service_description Root Disk Usage
servicegroups disk
check_command check_snmp_disk!3! -d /
contact_groups admins
}
And the log did not tell much especially the data was 3 days back.
pgsz-nagios-2 ~]# tail /usr/local/pnp4nagios/var/perfdata.log
2019-04-06 09:03:15 [16893] [0] RRDs::update /usr/local/pnp4nagios/var/perfdata/.pnp-internal/runtime_errors.rrd 1554541379:0
2019-04-06 09:03:15 [16893] [0] RRDs::update ERROR /usr/local/pnp4nagios/var/perfdata/.pnp-internal/runtime_errors.rrd: illegal attempt to update using time 1554541379 when last update time is 1554541380 (minimum one second step)
2019-04-06 09:03:15 [16893] [0] RRDs::update /usr/local/pnp4nagios/var/perfdata/.pnp-internal/runtime_invalid.rrd 1554541379:0
2019-04-06 09:03:15 [16893] [0] RRDs::update ERROR /usr/local/pnp4nagios/var/perfdata/.pnp-internal/runtime_invalid.rrd: illegal attempt to update using time 1554541379 when last update time is 1554541380 (minimum one second step)
You do not have the required permissions to view the files attached to this post.
If you click on the graph icon for the Root Disk Usage check, do you see the graph for the disk data?
The screen shot that you provided, did not show the performance data, go back there and click on the Root Disk Usage check and that should show you the details for that check as well as the performance data.
Attached is an example of that menu and the performance data is highlighted in yellow.
Core-Perfdata.PNG
The -d option, you may want to edit the check_snmp_disk command in the commands.cfg file so that if you use that command on other hosts, it will be enabled for them and you will not have to edit all of the checks for the hosts to get performance data.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Hi, the check_snmp_disk return disk check information actually, please refer to another screenshot attached here. However, if I put -d in the command line, the service check would become unknown.
This did not give me error but no rrd generated neither
# 'check_snmp_disk' command definition
define command{
command_name check_snmp_disk
command_line $USER1$/check_snmp_disk $ARG1$ abcdbeef $HOSTADDRESS$ $ARG2$ 70 90 -d
}
So I guess the plugin I used does not support pnp4nagios graph? Do you have another disk plugin that use snmp and can generate rrd for the disk usage? Thanks.
You do not have the required permissions to view the files attached to this post.
What you are looking for is a plugin that outputs performance data which, the pnp4nagios process will use to generate the graphs.
This plugin has a -f option that is used to output performance data. Give it a try. https://exchange.nagios.org/directory/P ... ge/details
Be sure to check out our Knowledgebase for helpful articles and solutions!