Search found 5 matches
- Thu Jul 27, 2017 3:09 pm
- Forum: Open Source Nagios Projects
- Topic: Can I change a hostname used in the check?
- Replies: 9
- Views: 3310
Re: Can I change a hostname used in the check?
I think this solution is OK (I am going to use it
), we can probably lock the thread.
- Wed Jul 26, 2017 2:36 pm
- Forum: Open Source Nagios Projects
- Topic: Can I change a hostname used in the check?
- Replies: 9
- Views: 3310
Re: Can I change a hostname used in the check?
In case anyone is interested in the subject - I have written the simple check check_ping_remote_mangmt.sh which gets $HOSTNAME$ as a parameter and manipulates the hostname before calling check_ping. Something like this: define command{ command_name check-ping-remote-managment command_line /usr/local...
- Tue Jul 25, 2017 3:27 pm
- Forum: Open Source Nagios Projects
- Topic: Can I change a hostname used in the check?
- Replies: 9
- Views: 3310
Re: Can I change a hostname used in the check?
Thanks for the answer!
We are using DHCP (please don't laugh
), I'd like to avoid hardcoding if I could come up with smart regex in the check.
Thank you,
Aleksandr
We are using DHCP (please don't laugh
Thank you,
Aleksandr
- Tue Jul 25, 2017 2:35 pm
- Forum: Open Source Nagios Projects
- Topic: Can I change a hostname used in the check?
- Replies: 9
- Views: 3310
Re: Can I change a hostname used in the check?
Thanks or response! My use case - for every host abcSRVdefgh I would like to have 2 ping checks: - ping_check for abcSRVdefgh (SRV in the name indicates a server), this would be standard - ping_check_ILO for abcILOdefgh (ILO in the name indicates an ILO board) I hope to be able to use sed in ping_ch...
- Tue Jul 25, 2017 12:04 pm
- Forum: Open Source Nagios Projects
- Topic: Can I change a hostname used in the check?
- Replies: 9
- Views: 3310
Can I change a hostname used in the check?
Apologies for the beginner's question.
Can I change a hostname ($HOSTNAME$) used in the check?
For example:
for host 'abcdefgh' I'd like to ping 'abcxyfgh'.
Thank you,
Aleksandr
Can I change a hostname ($HOSTNAME$) used in the check?
For example:
for host 'abcdefgh' I'd like to ping 'abcxyfgh'.
Thank you,
Aleksandr