RRD Error: not a simple signed integer

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
monit_burb
Posts: 52
Joined: Fri Sep 23, 2016 3:00 am

RRD Error: not a simple signed integer

Post by monit_burb »

Hi,

I've been seen the following error lately on my perfdata.log. I recall this check was running Ok on the past but latelly I get a "No data to display" on the graph. I tried deleting the .xml and .rrd of this checks but upen re-creation it still fails.

RRDs::update ERROR /usr/local/nagios/share/perfdata/HOST/Host_Up_Down_State.rrd not a simple signed integer:

The plugin that I'm using is the box293 vmware checks.

https://exchange.nagios.org/directory/P ... re/details

I did also try to use the fix_ds_quantity.sh script but it does not find any issue.

Any idea on how to solve this?
kyang

Re: RRD Error: not a simple signed integer

Post by kyang »

Is this the only error you see in the perfdata.log? Could you post some more info from the perfdata.log?

If the log_level hasn't been changed to 2 then you can do so, and then show us the logs. (This is can be found in the documentation)

Code: Select all

Change:

LOG_LEVEL = 0

To:

LOG_LEVEL = 2

The process_perfdata.pl script should now log all errors and debug information to the file /usr/local/nagios/var/perfdata.log which can be watched using this command:

tail -f /usr/local/nagios/var/perfdata.log
Here's the article on troubleshooting performance graphs.

https://support.nagios.com/kb/article.php?id=9

Is this the only check that is not displaying perf data? Or are there other checks from that plugin as well?
monit_burb
Posts: 52
Joined: Fri Sep 23, 2016 3:00 am

Re: RRD Error: not a simple signed integer

Post by monit_burb »

Hi,

I just increased the debug level and saw this

Code: Select all

2017-12-07 09:56:06 [16109] [1] Found Perfdata from Distributed Server BURBL4ESX01 / Host_Up_Down_State ('Uptime'=72.5d;4;1)
2017-12-07 09:56:06 [16109] [2] No Custom Template found for Host_Up_Down_State (/usr/local/nagios/etc/pnp/check_commands/Host_Up_Down_State.cfg)
2017-12-07 09:56:06 [16109] [2] Template is Host_Up_Down_State.php
2017-12-07 09:56:06 [16109] [2] data2rrd called
2017-12-07 09:56:06 [16109] [2] RRDs::update /usr/local/nagios/share/perfdata/BURBL4ESX01/Host_Up_Down_State.rrd 1512640549:72.5
2017-12-07 09:56:06 [16109] [1] RRDs::update ERROR /usr/local/nagios/share/perfdata/BURBL4ESX01/Host_Up_Down_State.rrd: not a simple signed integer: '72.5'
I tried to locate that file Host_Up_Down.php file but it seems it does not exist on the server.

The rest of the checks that use that plugin are working fine, only that one Host_Up_Down_State fails for all servers.
kyang

Re: RRD Error: not a simple signed integer

Post by kyang »

Could I see the command that you are using for the Host_Up_Down_State on the hosts?

What version of the plugin do you have?
Is it the 2016-10-02 version?

Could you also post the Host_Up_down_State.cfg?

Code: Select all

/usr/local/nagios/etc/pnp/check_commands/Host_Up_Down_State.cfg
monit_burb
Posts: 52
Joined: Fri Sep 23, 2016 3:00 am

Re: RRD Error: not a simple signed integer

Post by monit_burb »

Hi,

I used to have version 2016-05-10 and updates recently to 2016-10-02 just in case this solved the issue but it didn't.

I'm using the command extracted from the manual. In the end it a check_by_ssh that calls the remote script box293_check_vmware.pl

/usr/local/nagios/libexec/check_by_ssh -E 1 -t 90 -l vi-admin -H 10.30.110.135 -C "~/box293_check_vmware.pl --timeout 90 --server esbarwvctr05 --check Host_Up_Down_State --host \"burbl1esx01\" --warning \"uptime:4\" --critical \"uptime:1\" \"\" \"\" \"\""

The file /usr/local/nagios/etc/pnp/check_commands/Host_Up_Down_State.cfg does not exist and in the manual it does not talk about configuring templates for the graph. Is creating the graph using the default template but it does not fail for the rest of the graph of the plugin.
kyang

Re: RRD Error: not a simple signed integer

Post by kyang »

Code: Select all

/usr/local/nagios/libexec/check_by_ssh -E 1 -t 90 -l vi-admin -H 10.30.110.135 -C "~/box293_check_vmware.pl --timeout 90 --server esbarwvctr05 --check Host_Up_Down_State --host \"burbl1esx01\" --warning \"uptime:4\" --critical \"uptime:1\" \"\" \"\" \"\""
Does that work when you run it through the command?

I'm only seeing examples of something like this in the manual.

Code: Select all

/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 192.168.1.231 -C "~/box293_check_vmware.pl --server 192.168.1.211 --check vCenter_Name_Version"
Is it still creating new .rrd and .xml files?

What version of the rrdtool do you have?

Code: Select all

rrdtool
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: RRD Error: not a simple signed integer

Post by Box293 »

I'm pretty sure you emailed me about the problem. I sent you a beta version of the plugin which I think will fix the issue, lets see if it does.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
monit_burb
Posts: 52
Joined: Fri Sep 23, 2016 3:00 am

Re: RRD Error: not a simple signed integer

Post by monit_burb »

Box293 wrote:I'm pretty sure you emailed me about the problem. I sent you a beta version of the plugin which I think will fix the issue, lets see if it does.
Yes, that was me. I'll test your beta version script to see if that solves the issue.
kyang wrote:

Code: Select all

/usr/local/nagios/libexec/check_by_ssh -E 1 -t 90 -l vi-admin -H 10.30.110.135 -C "~/box293_check_vmware.pl --timeout 90 --server esbarwvctr05 --check Host_Up_Down_State --host \"burbl1esx01\" --warning \"uptime:4\" --critical \"uptime:1\" \"\" \"\" \"\""
Does that work when you run it through the command?

I'm only seeing examples of something like this in the manual.

Code: Select all

/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 192.168.1.231 -C "~/box293_check_vmware.pl --server 192.168.1.211 --check vCenter_Name_Version"
Is it still creating new .rrd and .xml files?

What version of the rrdtool do you have?

Code: Select all

rrdtool
Yes, that command works but it seems the issue is that my servers being with en_GB locales use a different comma separator than the script thus causing the error. I got a beta version from Troy that is supposed to solve the issue.
kyang

Re: RRD Error: not a simple signed integer

Post by kyang »

Sounds good!

@box293, let me know that he sent you a beta version as well.

Let us know how if it solves your issue!
Locked