Results showing differently

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.
Locked
Pratapa
Posts: 150
Joined: Tue Oct 01, 2019 1:33 am

Results showing differently

Post by Pratapa »

Hi,

We are using Nagios core 4.4.4

When we run a script on the remote machine (which is a Linux machine, RHEL 7.8 ) we are getting expected output whereas when we invoke it from the nagios server it is giving different output.

On Remote Host :

nagios@dd2ukytp201>/usr/bin/sudo /usr/lib64/nagios/plugins/check_all_fs.py 81 91
WARNING -- /opt filesystem breached warning level 18% free

df -k /opt
it is 82% full and showing correct results.

where as on Nagios server when we execute it is showing different results.(executed with nagios user)

./check_nrpe -H dd2ukytp201 -n -t 300 -c check_root_df -a 81 91
WARNING - /opt/opnv/netebackup filesystem breached warning level 12% free

However /opt/opnv/netbackup is 70% free on the remote host.

Not sure why it is showing differently on Nagios server.
DoubleDoubleA
Posts: 272
Joined: Thu Feb 09, 2017 5:07 pm

Re: Results showing differently

Post by DoubleDoubleA »

Hi @Pratapa,

Where did you get check_all_fs.py?

Why does one report on /opt and the other on /opt/opnv/netbackup ?

I'd probably want to look at your plugin and also compare your command definition for check_root_df to running the plugin locally on the remote host with check_all_fs.py 81 91 .

A lot of times when things don't work but you'd really think they should, I like to go looking for a typo or some other slight (and easy to miss) mis-configuration.

Aaron
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: Results showing differently

Post by kg2857 »

Post the nrpe command check_root_df that gets executed for this check.
The command and what's being run from the shell aren't the same.
Pratapa
Posts: 150
Joined: Tue Oct 01, 2019 1:33 am

Re: Results showing differently

Post by Pratapa »

This issue is resolved.

Issue is with IP addres.
DoubleDoubleA
Posts: 272
Joined: Thu Feb 09, 2017 5:07 pm

Re: Results showing differently

Post by DoubleDoubleA »

Thanks for reporting it solved!

Aaron
Locked