Check Operating System Version
Check Operating System Version
Getting problem while run command on nagios server:
/usr/lib64/nagios/plugins/check_nrpe -H HOSTNAME -t 30 -c Check_OS_Version -a show-all 'detail-syntax=${kernel_name} Version ${kernel_release}
Here's is the output message:
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
/usr/lib64/nagios/plugins/check_nrpe -H HOSTNAME -t 30 -c Check_OS_Version -a show-all 'detail-syntax=${kernel_name} Version ${kernel_release}
Here's is the output message:
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Check Operating System Version
What version of NSClient++ are you using and what OS is it running on?
Can you please post the nsc.ini or nsclient.ini file here.
Can you please post the nsc.ini or nsclient.ini file here.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Check Operating System Version
I want to check linux OS version.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Check Operating System Version
You are missing the closing ' at the end of this commandrlinux57 wrote:usr/lib64/nagios/plugins/check_nrpe -H HOSTNAME -t 30 -c Check_OS_Version -a show-all 'detail-syntax=${kernel_name} Version ${kernel_release}
Code: Select all
usr/lib64/nagios/plugins/check_nrpe -H HOSTNAME -t 30 -c Check_OS_Version -a show-all 'detail-syntax=${kernel_name} Version ${kernel_release}'Have you enabled insecure settings (this is new in 0.4.3)?
Code: Select all
nscp settings --path /settings/NRPE/server --key insecure --set trueCode: Select all
nscp settings --path /settings/log --key level --set debugAND add debug to the end of your command
Code: Select all
usr/lib64/nagios/plugins/check_nrpe -H HOSTNAME -t 30 -c Check_OS_Version -a show-all 'detail-syntax=${kernel_name} Version ${kernel_release}' debugAlso, have you opened the firewall port on your Linux server?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Check Operating System Version
I was missing closing ' on this post only.
I'm using nrpe. I've nagios monitoring system on linux server.
Is it any changes required in nrpe.cfg at host end ?
I'm using nrpe. I've nagios monitoring system on linux server.
Is it any changes required in nrpe.cfg at host end ?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Check Operating System Version
Yeah I think there was a bit of confusion as to what you were using initially. Can you attach your plugin here as well please? Or provide a link?
Re: Check Operating System Version
Check this link: http://sites.box293.com/nagios/guides/c ... ing-system
I want to implement for linux servers added in my NMS.
I want to do this through nrpe not nsc.
I want to implement for linux servers added in my NMS.
I want to do this through nrpe not nsc.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Check Operating System Version
Hey thats my page
The Check_OS_Version check is ONLY available on the Linux version of NSClient++ 0.4.3 onwards. It is built into NSClient++ for Linux.
Here's some install instructions:
http://sites.box293.com/nagios/guides/n ... unix-linux
If you want to do it using NRPE you'll need to find a script that does it.
The Check_OS_Version check is ONLY available on the Linux version of NSClient++ 0.4.3 onwards. It is built into NSClient++ for Linux.
Here's some install instructions:
http://sites.box293.com/nagios/guides/n ... unix-linux
If you want to do it using NRPE you'll need to find a script that does it.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Check Operating System Version
There's no such script for nrpe i've already searched it in google.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Check Operating System Version
Why not just make a basic script for this? All you need to do is:
For Centos/RHEL systems, you can switch it around for what ever distro you are checking. You would of course need to build in exit code handling and some simple standard output following:
https://nagios-plugins.org/doc/guidelines.html
This specific check looks at the kernel version, you could base it off of that:
http://exchange.nagios.org/directory/Pl ... on/details
Code: Select all
cat /etc/redhat-release
https://nagios-plugins.org/doc/guidelines.html
This specific check looks at the kernel version, you could base it off of that:
http://exchange.nagios.org/directory/Pl ... on/details