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.
Results showing differently
-
DoubleDoubleA
- Posts: 273
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Results showing differently
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
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
Re: Results showing differently
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.
The command and what's being run from the shell aren't the same.
Re: Results showing differently
This issue is resolved.
Issue is with IP addres.
Issue is with IP addres.
-
DoubleDoubleA
- Posts: 273
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Results showing differently
Thanks for reporting it solved!
Aaron
Aaron